//
//  ZDBWithdrawalsTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBWithdrawalsTableViewCell.h"

@implementation ZDBWithdrawalsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellAccessoryNone;
    [self setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];
    _statusLab.textColor = [UIColor redColor];
    self.backgroundColor = WHITECOLOR;
}
- (void)setWithdrawals:(Withdrawals *)withdrawals
{
    _withdrawals = withdrawals;
    _order_no.text = kFormat(@"编号：%@", _withdrawals.orderNumber);
    _timeLab.text = _withdrawals.createTime;
    _priceLab.text = kFormat(@"%@", _withdrawals.moeny);
    switch (withdrawals.state.intValue) {
        case 1:
            _statusLab.text = @"处理中";
            break;
        case 2:
            _statusLab.text = @"审核成功";
            break;
        case 3:
            _statusLab.text = @"审核失败";
            break;
        case 4:
            _statusLab.text = @"成功";
            break;
            
        default:
            break;
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
